package com.xiaomi.service;

import com.github.pagehelper.PageInfo;
import com.xiaomi.entity.PageBean;
import com.xiaomi.pojo.Goods;
import com.xiaomi.pojo.User;

import java.util.List;

/**
 * @ClassName GoodsService
 * @Author xiao宋
 * @Date 11:51  2022/9/14
 * @Version 1.0
 * @Description TODO
 */
public interface GoodsService {

    Goods findById(int goodsId);

//    PageBean<Goods> findGoodsListByTypeIdPage(int typeId, int pageSize, int pageNum);

    PageInfo<Goods> findGoodsListByTypeIdPage(int goodsTypeId,Integer pageNum, Integer pageSize);

    List<Goods> getGoodsList();

    void addGoods(String name, String picture, String intro, int price, int star, String pubdate, int typeid);
}
